package com.dingyh.shopwebbackground.service;

import com.dingyh.shopwebbackground.entity.Commodity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dingyuhan
 * @since 2023-02-14
 */
public interface CommodityService extends IService<Commodity> {
    List<Commodity> isPushHome(Map<String,Object> map);
    List<Commodity> allGoods(Map<String,Object> map);
    List<Commodity> allGoodsByCompany(Map<String,Object> map);
    List<Commodity> allGoodsBySaleMonth(Map<String,Object> map);
    Commodity addGoods(Map<String,Object> map);
    List<Commodity> selectByName(Map<String,Object> map);
    Commodity selectGoods(String id);
    boolean updStock(Commodity commodity);
    boolean updMonth(String id, BigDecimal month);
    boolean removeGoods(String id);
}
